package edu.whu.springdatademo.service;

import com.sun.istack.NotNull;
import edu.whu.springdatademo.entity.Product;
import edu.whu.springdatademo.entity.Supplier;
import edu.whu.springdatademo.exception.ProductException;

import java.util.List;
import java.util.Map;


public interface ProductService {
    Product selectById(Integer id);

    Product save(Product product);

    void deleteById(Integer id) throws ProductException;

    List<Product> SelectByCondition(@NotNull Map<String, Object> condition);

    List<Supplier> selectSuppliers(int pid);

}
